import request from '@/utils/request'

export const getCategoryAPI = () => request.get('/my/cate/list')

export const addCategoryAPI = data => request.post('/my/cate/add', data)

export const delCategoryAPI = data => request.delete('/my/cate/del', { params: { id: data } })

export const editCategoryAPI = data => request.put('/my/cate/info', data)
